
package Acciones.Edicion.Dialogos;

import Componentes.labelTag;
import Launcher.GoBox;
import Modelos.TblClientes;
import java.util.List;
import javax.swing.JDialog;
import javax.swing.JLabel;


public class dlgEnviarMail extends JDialog {


    public dlgEnviarMail(java.awt.Frame parent, boolean modal, List<TblClientes> ls) {
        initComponents();
        this.setLocationRelativeTo(null);
        for (TblClientes tblClientes : ls) {
            this.pnlContenedor.add(new labelTag(tblClientes));
            this.pnlContenedor.add(new JLabel(""));
        }
    }


    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        pnlRedondo1 = new org.edisoncor.gui.panel.PanelNice();
        jSplitPane1 = new javax.swing.JSplitPane();
        pnlRedondo3 = new org.edisoncor.gui.panel.PanelNice();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        scpDestino = new javax.swing.JScrollPane();
        pnlContenedor = new javax.swing.JPanel();
        pnlRedondo2 = new org.edisoncor.gui.panel.PanelNice();
        jScrollPane1 = new javax.swing.JScrollPane();
        jEditorPane1 = new javax.swing.JEditorPane();
        jToolBar1 = new javax.swing.JToolBar();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setBackground(new java.awt.Color(255, 255, 255));

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));

        pnlRedondo1.setBackground(new java.awt.Color(121, 137, 167));
        pnlRedondo1.setAnchoDeBorde(0.0F);

        jSplitPane1.setBorder(null);
        jSplitPane1.setDividerLocation(220);
        jSplitPane1.setDividerSize(6);
        jSplitPane1.setForeground(new java.awt.Color(255, 255, 255));
        jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
        jSplitPane1.setOneTouchExpandable(true);
        jSplitPane1.setOpaque(false);

        pnlRedondo3.setBackground(new java.awt.Color(220, 230, 240));
        pnlRedondo3.setAnchoDeBorde(0.0F);

        jLabel1.setText("Para:");

        jLabel2.setText("Asunto");

        scpDestino.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
        scpDestino.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

        pnlContenedor.setOpaque(false);
        scpDestino.setViewportView(pnlContenedor);

        org.jdesktop.layout.GroupLayout pnlRedondo3Layout = new org.jdesktop.layout.GroupLayout(pnlRedondo3);
        pnlRedondo3.setLayout(pnlRedondo3Layout);
        pnlRedondo3Layout.setHorizontalGroup(
            pnlRedondo3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlRedondo3Layout.createSequentialGroup()
                .addContainerGap()
                .add(pnlRedondo3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jTextField1)
                    .add(pnlRedondo3Layout.createSequentialGroup()
                        .add(pnlRedondo3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel2)
                            .add(jLabel1))
                        .add(0, 471, Short.MAX_VALUE))
                    .add(scpDestino))
                .addContainerGap())
        );
        pnlRedondo3Layout.setVerticalGroup(
            pnlRedondo3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlRedondo3Layout.createSequentialGroup()
                .add(9, 9, 9)
                .add(jLabel1)
                .add(7, 7, 7)
                .add(scpDestino, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel2)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(16, 16, 16))
        );

        jSplitPane1.setTopComponent(pnlRedondo3);

        pnlRedondo2.setBackground(new java.awt.Color(220, 230, 240));
        pnlRedondo2.setAnchoDeBorde(0.0F);

        jEditorPane1.setContentType("text/html");
        jScrollPane1.setViewportView(jEditorPane1);

        jToolBar1.setBackground(new java.awt.Color(121, 137, 167));
        jToolBar1.setFloatable(false);
        jToolBar1.setForeground(new java.awt.Color(121, 137, 167));
        jToolBar1.setBorderPainted(false);
        jToolBar1.setOpaque(false);

        org.jdesktop.layout.GroupLayout pnlRedondo2Layout = new org.jdesktop.layout.GroupLayout(pnlRedondo2);
        pnlRedondo2.setLayout(pnlRedondo2Layout);
        pnlRedondo2Layout.setHorizontalGroup(
            pnlRedondo2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlRedondo2Layout.createSequentialGroup()
                .addContainerGap()
                .add(pnlRedondo2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jToolBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 516, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1))
                .addContainerGap())
        );
        pnlRedondo2Layout.setVerticalGroup(
            pnlRedondo2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlRedondo2Layout.createSequentialGroup()
                .addContainerGap()
                .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(2, 2, 2)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)
                .addContainerGap())
        );

        jSplitPane1.setRightComponent(pnlRedondo2);

        org.jdesktop.layout.GroupLayout pnlRedondo1Layout = new org.jdesktop.layout.GroupLayout(pnlRedondo1);
        pnlRedondo1.setLayout(pnlRedondo1Layout);
        pnlRedondo1Layout.setHorizontalGroup(
            pnlRedondo1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlRedondo1Layout.createSequentialGroup()
                .add(8, 8, 8)
                .add(jSplitPane1)
                .add(8, 8, 8))
        );
        pnlRedondo1Layout.setVerticalGroup(
            pnlRedondo1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlRedondo1Layout.createSequentialGroup()
                .add(8, 8, 8)
                .add(jSplitPane1)
                .add(8, 8, 8))
        );

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(8, 8, 8)
                .add(pnlRedondo1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(8, 8, 8))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(8, 8, 8)
                .add(pnlRedondo1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(8, 8, 8))
        );

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    @Override
    public void dispose() {
        super.dispose();
        GoBox.getInstance().getGlassPane().setVisible(false);
    }

  
 public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                dlgEnviarMail dialog = new dlgEnviarMail(new javax.swing.JFrame(), true, null);
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JEditorPane jEditorPane1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSplitPane jSplitPane1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JPanel pnlContenedor;
    private org.edisoncor.gui.panel.PanelNice pnlRedondo1;
    private org.edisoncor.gui.panel.PanelNice pnlRedondo2;
    private org.edisoncor.gui.panel.PanelNice pnlRedondo3;
    private javax.swing.JScrollPane scpDestino;
    // End of variables declaration//GEN-END:variables
}
